# Django non-secret settings for streamux.

from settings_private import *

TEMPLATE_DEBUG = DEBUG

ADMINS = (
    ('David Anderson', 'dave@natulte.net'),
)

MANAGERS = ADMINS

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'Europe/Paris'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'fr-fr'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = SITE_ROOT + '/media'

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = ''

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/admin_media/'

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
)

ROOT_URLCONF = 'streamux.urls'

TEMPLATE_DIRS = (
    SITE_ROOT + '/templates',
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'streamux.radio'
)

AUTHENTICATION_BACKENDS = (
    'radio.ae_auth.AeAuthBackend',
)

# The URL for logging in.
LOGIN_URL = '/login'

# If no explicit next is provided, redirect to the site root.
LOGIN_REDIRECT_URL = '/'

# Daemon configuration
DAEMON_LOGFILE = SITE_ROOT + '/logs/daemon.log'
DAEMON_PIDFILE = SITE_ROOT + '/daemon.pid'

# Music directories
MUSIC_DIR = SITE_ROOT + '/music/actual'
MUSIC_INCOMING = SITE_ROOT + '/music/incoming'
MUSIC_FAILED = SITE_ROOT + '/music/failed'

# Liquidsoap root
LIQ_DIR = SITE_ROOT + '/liquidsoap'
